package cn.stylefeng.guns.modular.working.service;

import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import cn.stylefeng.guns.modular.working.entity.Working;
import cn.stylefeng.guns.modular.working.model.params.WorkingParam;
import cn.stylefeng.guns.modular.working.model.result.WorkingResult;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author syt
 * @since 2020-10-11
 */
public interface WorkingService extends IService<Working> {

    /**
     * 新增
     *
     * @author syt
     * @Date 2020-10-11
     */
    void add(WorkingParam param);

    /**
     * 删除
     *
     * @author syt
     * @Date 2020-10-11
     */
    void delete(WorkingParam param);

    /**
     * 更新
     *
     * @author syt
     * @Date 2020-10-11
     */
    void update(WorkingParam param);

    /**
     * 查询单条数据，Specification模式
     *
     * @author syt
     * @Date 2020-10-11
     */
    WorkingResult findBySpec(WorkingParam param);

    /**
     * 查询列表，Specification模式
     *
     * @author syt
     * @Date 2020-10-11
     */
    List<WorkingResult> findListBySpec(WorkingParam param);

    /**
     * 查询分页数据，Specification模式
     *
     * @author syt
     * @Date 2020-10-11
     */
     LayuiPageInfo findPageBySpec(WorkingParam param);

}
